package com.azt.provider.mapper;

import com.azt.api.dto.item.ProSkuExt;
import com.azt.api.dto.item.SkuModel;
import com.azt.api.pojo.ProSku;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface ProSkuMapper extends Mapper<ProSku> {
    /**
     * 获取sku扩展属性,根据产品id
     * Created by 张栋 on 2017/2/21 14:13
     */
    List<ProSkuExt> getProSkuExtByProductId(Integer productid);

    List<SkuModel> geteProModelByProductId(Integer porductid);
    
    public List<ProSku> getProSkusByProductId(Integer id);

    /**
     * 查询价格
     */
    List<ProSku> selectPrice(@Param("productIds") List<Integer> productIds);
}